package com.hisan.freeride.common.utils.utils;

import com.hisan.freeride.common.utils.CacheUtils;
import com.hisan.freeride.common.utils.CollectionUtils;

/**
 * //获取用户token
 * Created by admin on 2017/5/20.
 */

public class TokenUtils {
    private static String access_token="";

    private TokenUtils() {
        throw new UnsupportedOperationException("u can't instantiate me...");
    }

    public static  String getToken(){
        access_token= CacheUtils.getInstance().getString("token");
        if (!CollectionUtils.isNullOrEmpty(access_token)){
            return access_token;
        }
        return "";
    }
}
